import request from '@/utils/request'

// 查询告警规则配置列表
export function listAlarmRuleConfig(query) {
  return request({
    url: '/system/alarmRuleConfig/list',
    method: 'get',
    params: query
  })
}

// 查询告警规则配置详细
export function getAlarmRuleConfig(ruleId) {
  return request({
    url: '/system/alarmRuleConfig/' + ruleId,
    method: 'get'
  })
}

// 新增告警规则配置
export function addAlarmRuleConfig(data) {
  return request({
    url: '/system/alarmRuleConfig',
    method: 'post',
    data: data
  })
}

// 修改告警规则配置
export function updateAlarmRuleConfig(data) {
  return request({
    url: '/system/alarmRuleConfig',
    method: 'put',
    data: data
  })
}

// 删除告警规则配置
export function delAlarmRuleConfig(ruleId) {
  return request({
    url: '/system/alarmRuleConfig/' + ruleId,
    method: 'delete'
  })
}
